package com.lanou3g.ptp.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel("任务学生关系实体类")
public class TaskStudent implements Serializable {

    @ApiModelProperty("任务学生关系id")
    private Long id;

    @ApiModelProperty("任务id")
    private Long taskId;

    @ApiModelProperty("学生id")
    private Long studentId;

    @ApiModelProperty(name = "状态", hidden = true)
    private Integer status;

    @ApiModelProperty(name = "创建时间", hidden = true)
    private Date createTime;

    @ApiModelProperty(name = "更新时间", hidden = true)
    private Date updateTime;

    public TaskStudent(Long taskId, Long studentId, Integer status, Date createTime, Date updateTime) {
        this.taskId = taskId;
        this.studentId = studentId;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
